package cn.gson.boot.controller;

import cn.gson.boot.model.pojos.Status;
import cn.gson.boot.model.service.StatusService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import java.util.List;

@Controller
@RequestMapping("/status")
public class StatusController {
    @Autowired
    StatusService statusService;

    /**
     * 状态列表
     * @return
     */
    @RequestMapping("/status-list")
    @ResponseBody
    public List<Status> selectAllStatus(){
        return statusService.selectAllStatus();
    }
}
